// import { get, post } from '@/utils/request'

// export const blockDataAdd = (query) => {
//   return post('/block/data/saveOrUpdateBatch', query)
// }
import { get, post, put, del } from '@/utils/request'
// 内容列表接口
export const sys_role_list = (query) => {
  return get('/sys/role/list', query)
}

export const sys_role_edit = (query) => {
  return put('/sys/role/edit', query)
}
export const sys_role_add = (query) => {
  return post('/sys/role/add', query)
}

export const sys_role_delete = (query) => {
  return del('/sys/role/delete', query)
}

export const sys_role_userRoleList = (query) => {
  return get('/sys/user/userRoleList', query)
}

export const sys_role_addSysUserRole = (query) => {
  return post('/sys/user/addSysUserRole', query)
}

export const sys_role_deleteUserRole = (query) => {
  return del('/sys/user/deleteUserRole', query)
}
export const sys_role_saveRolePermission = (query) => {
  return post('/sys/permission/saveRolePermission', query)
}
export const sys_role_queryRolePermission = (query) => {
  return get('/sys/permission/queryRolePermission', query)
}
export const getUserPermissionByToken = (query) => {
  return get('/sys/permission/getUserPermissionByToken', query)
}

